<template>
  <div class="category">
    <h3 class="title">{{title}}分类</h3>
    <slot :games="games">我是一些默认值</slot>
  </div>
</template>

<script>
export default {
  name: 'Category',
  props: ['title'],
  data() {
    return {
      games: ['红色警戒', '穿越火线', '劲舞团', '超级玛丽'],
    }
  },
}
</script>

<style>
.category {
  background-color: skyblue;
  width: 200px;
  height: 300px;
}
.title {
  background-color: orange;
  text-align: center;
  /* padding-top: 30px; */
}
</style>